package com.jonluo.rabbit.sender;

import com.jonluo.rabbit.congif.RabbitUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class FanoutSender {

    @Autowired
    private RabbitUtils rabbitUtils;

    public void send() {
        String msgString="FanoutSender :hello i am jonluo";
        System.out.println(msgString);
        this.rabbitUtils.send("fanoutExchange","", msgString);
    }

}